<?php
use Lib\GetRedis;
require 'vendor/autoload.php';

$redis = GetRedis::getInstance();

$key = "mail:task";
$message = [
    'subject' => 'test subject',
    'body' => 'test body',
    'receiver' => 'adapa@qq.com'
];

$message = json_encode($message);
$redis->lPush($key,$message);

echo 'dome',PHP_EOL;